package one.stand.util;

/**
 * @author cjr
 */
public class RequestContextTestUtil {
    public static void init(Integer id, Integer cardId, Integer companyId) {
        RequestContext requestContext = new RequestContext();
        RequestContext.User user = RequestContext.User.builder().userId(id)
                .cardId(cardId)
                .companyId(companyId)
                .build();
        requestContext.setUser(user);
        requestContext.setLogin(true);
        RequestContextHolder.setRequestContext(requestContext);
    }
}
